package com.ziyun.erp.modules.data.service.impl;

import com.ziyun.erp.modules.data.entity.OtherAccessoryDataEntity;
import com.ziyun.erp.modules.production.entity.ErpOrderItemEntity;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.erp.modules.data.dao.OrderItemExtendDao;
import com.ziyun.erp.modules.data.entity.OrderItemExtendEntity;
import com.ziyun.erp.modules.data.service.OrderItemExtendService;


@Service("orderItemExtendService")
public class OrderItemExtendServiceImpl extends ServiceImpl<OrderItemExtendDao, OrderItemExtendEntity> implements OrderItemExtendService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<OrderItemExtendEntity> page = this.selectPage(
                new Query<OrderItemExtendEntity>(params).getPage(),
                new EntityWrapper<OrderItemExtendEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<ErpOrderItemEntity> selectOrderItemList(Map<String, Object> params) {
        return this.baseMapper.selectOrderItemList(params);
    }

    @Override
    public String selectSendPicsList() {
        return this.baseMapper.selectSendPicsList();
    }

    @Override
    public List<OtherAccessoryDataEntity> selectImageInfoList(String[] split) {
        return this.baseMapper.selectImageInfoList(split);
    }

}
